package cn.kgc.mapper;

import cn.kgc.pojo.SmbmsUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    SmbmsUser getdenglu(@Param("userCode")String userCode,@Param("userPassword")String userPassword);

    int getConut(@Param("userName") String userName,
                 @Param("userRole") Integer userRole);

    List<SmbmsUser> getByPage(@Param("pageNow")Integer pageNow,
                              @Param("pageSize")Integer pageSize,
                              @Param("userName") String userName,
                              @Param("userRole") Integer userRole);

    SmbmsUser getId(Integer id);

    int addUser(SmbmsUser smbmsUser);

    int updateUser(SmbmsUser smbmsUser);

    int delId(Integer id);

    SmbmsUser getUserCode(@Param("userCode") String userCode);
}
